package com.example.neusoft.yuejian_12.Utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.neusoft.yuejian_12.R;

/**
 * Created by 晓真 on 2017/11/9.
 */

public class GlideLoader implements ImageLoader {

    private static final long serialVersionUID = 1L;

    @Override
    public void displayImage(Context context, String path, ImageView imageView) {
        Glide.with(context)
                .load(path)
                .placeholder(R.drawable.ic_photo_g)
                .centerCrop()
                .into(imageView);
    }

}